﻿#include <zmq.hpp>
#include <iostream>

void monitor_callback(int event, int value, void* arg) {
  zmq::socket_t* socket = static_cast<zmq::socket_t*>(arg);
  switch (event) {
    case ZMQ_EVENT_CONNECTED:
      std::cout << "Socket connected." << std::endl;
      break;
    case ZMQ_EVENT_DISCONNECTED:
      std::cout << "Socket disconnected." << std::endl;
      break;
    case ZMQ_EVENT_MONITOR_STOPPED:
      std::cout << "Monitor stopped." << std::endl;
      break;
    default:
      std::cout << "Unknown event." << std::endl;
      break;
  }
}

int main() {

}
